package com.emokili.ewa.app.controller;

import com.emokili.ewa.common.utils.R;
import com.emokili.ewa.core.frame.service.FeedBackService;
import com.emokili.ewa.core.frame.vo.FeedBackVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("v1/app")
public class FeedBackController {

    @Autowired
    private FeedBackService feedBackService;

    @PostMapping("/feedback")
    @ResponseBody
    public R feedBack(@RequestBody FeedBackVo feedBackVo){
        feedBackService.feedBack(feedBackVo);
        return R.ok();
    }
}
